<?php if(!defined("PATH_HD"))exit;?>
﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>

	<script type="text/javascript">
	url="http://localhost/zyhhdcms/xm/index.php/admin/category"+'&m=del';
	</script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link type="text/css" rel="stylesheet" href="http://localhost/zyhhdcms/xm/static/css/base.css"/>
	<script type='text/javascript' src='http://localhost/zyhhdcms/xm/hdphp/org/jquery-1.7.2.min.js'></script>
    <script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/zyhhdcms/xm';
		HDPHP = 'http://localhost/zyhhdcms/xm/hdphp';
		STATIC = 'http://localhost/zyhhdcms/xm/static';
		DATA = 'http://localhost/zyhhdcms/xm/data';
		WEB = 'http://localhost/zyhhdcms/xm/index.php';
		APP = 'http://localhost/zyhhdcms/xm/index.php/admin';
		CONTROL = 'http://localhost/zyhhdcms/xm/index.php/admin/category';
		METH = 'http://localhost/zyhhdcms/xm/index.php/admin/category/index';
		URL = 'http://localhost/zyhhdcms/xm/index.php/admin/category/index';
		ORG = 'http://localhost/zyhhdcms/xm/hdphp/org';
		TPL = 'http://localhost/zyhhdcms/xm/cms/admin/tpl';
		PUBLIC = 'http://localhost/zyhhdcms/xm/cms/admin/tpl/public';
</script>
	<script type="text/javascript" src="<?php echo "http://localhost/zyhhdcms/xm/cms/admin/tpl/public/js/catdel.js";?>"></script>
	<?php C("DEBUG","1");?>
</head>
<body style="padding:10px;">
    <div class="path">
        <strong>您现在的位置：</strong>
        <a href="#">栏目管理</a>
    </div>
    <div class="send1">
        <a href="http://localhost/zyhhdcms/xm/index.php/admin/category/add_show" target="con" class="current button1">添加顶级栏目</a>
    </div>
    <table class="table1">
        <thead>
            <tr>
                <td width="30">catid</td>
                <td width="200">栏目名称</td>
                <td width="160">所属模型</td>
                <td width="200">操作</td>
            </tr>
        </thead>
        <tbody>
        <?php if(!empty($row)){$listCount = count($row);$list_id1=0;?><?php foreach($row as $key=>$v){?><?php $list_id1+=1;?>
        <tr>
            <td width="30"><?php echo $v['cateid'];?></td>
            <td><?php echo $v['html'];?>
        <?php if($v['pid'] > 0){?> 
            └─<a href="http://localhost/zyhhdcms/xm/index.php/admin/news/index/cateid/<?php echo $v['catid'];?>"><?php echo $v['cname'];?></a>
            <?php  }else{ ?><a href="http://localhost/zyhhdcms/xm/index.php/admin/news/index/caetid/<?php echo $v['catid'];?>"><?php echo $v['cname'];?></a>
        <?php }?>
    </td>
    <td width="160">文章</td>
    <td width="200" style="font-size:12px;">
        <a href="http://localhost/zyhhdcms/xm/index.php/admin/category/add_show/cateid/<?php echo $v['cateid'];?>">添加子栏目</a> | 
        <a href="#">修改</a> |    
        <span name='<?php echo $v['cateid'];?>' class='del' style="color:red;font-size:14px;cursor:pointer;">删除</span>
    </td>
</tr>
<?php }?><?php }?>
</tbody>  
</table>
<div class="send2">
    <a href="#" class="button1">排序</a>
</div>
</body>
</html>
